<?php
namespace Home\Controller;
use Common\Controller\HomeController;
use Org\Util\Base;
use Think\Controller;
class IndexController extends HomeController {
    public function index(){
        $Conf = ['title'=>'首页','js'=>['index']];
        $this->assign('Conf',$Conf);

         $field=(new Base())->channelLevel(m('category')->select(),$pid=0,$html="&nbsp;", $fieldPri = 'cid', $fieldPid = 'pid');
//         dd($field);
        $this->assign('field',$field);
//dd($field);
       $zuixin =m('goods')->order('gid')->limit(5)->select();
       $this->assign('zuixin',$zuixin);
//       dd($zuixin);


        $erji360=m('goods')->where("cid=24")->limit(6)->select();
       $this->assign('erji360',$erji360);

        $erjirx=m('goods')->where("cid=24")->limit(4)->select();
        $this->assign('erjirx',$erjirx);


        $yddy=m('goods')->where("cid=19")->limit(6)->select();
        $this->assign('yddy',$yddy);

        $yddyrx=m('goods')->where("cid=19")->limit(4)->select();
        $this->assign('yddyrx',$yddyrx);


        $sjn5=m('goods')->where("cid=3")->limit(6)->select();
        $this->assign('sjn5',$sjn5);

        $sjn5rx=m('goods')->where("cid=3")->limit(4)->select();
        $this->assign('sjn5rx',$sjn5rx);


        $shouhuan=m('goods')->where("cid=26")->limit(6)->select();
        $this->assign('shouhuan',$shouhuan);

        $shouhuanrx=m('goods')->where("cid=26")->limit(4)->select();
        $this->assign('shouhuanrx',$shouhuanrx);


        $xinpinkuaidi =m('goods')->order('gid')->limit(15)->select();
        $this->assign('xinpinkuaidi',$xinpinkuaidi);




        $this->display();
    }
}